// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import 'babel-polyfill'
import store from './store'
import $ from 'jquery'
import {post, fetch} from './publicLib/http/Http'

Vue.use(iView);
Vue.use(Vuex);

Vue.config.productionTip = false;

//定义全局变量
Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});
